﻿<UserControl x:Class="Cooking.Client.Views.ShellView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
	<Controls:BusyIndicator DisplayAfter="00:00:00.500" IsBusy="{Binding Path=IsBusy}">
		<Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">

			<Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}" Margin="0,42,0,0" HorizontalAlignment="Left" Width="0" Background="#FF722C2C"/>

			<Grid x:Name="HeaderGrid" Style="{StaticResource NavigationGridStyle}" RenderTransformOrigin="0,1" Margin="10,10,0,0">

				<Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}" Margin="0,1,20,0" HorizontalAlignment="Right" Width="294" d:LayoutOverrides="HorizontalAlignment">
					<Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}" HorizontalAlignment="Left" Margin="0">
						<StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">

							<HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}" NavigateUri="/Search" TargetName="ContentFrame" Content="home" Foreground="White" />

							<Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}" />

							<HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}" NavigateUri="/About" TargetName="ContentFrame" Content="about" Foreground="White" />

						</StackPanel>
					</Border>
				</Border>

			</Grid>
			<navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" Source="/SearchView" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed" Margin="0,42,0,0" HorizontalAlignment="Stretch" Width="Auto" VerticalAlignment="Stretch" Padding="0" BorderThickness="0" DataContext="{Binding null}">
				<navigation:Frame.UriMapper>
					<uriMapper:UriMapper>
						<uriMapper:UriMapping Uri="" MappedUri="/Views/Search.xaml" />
						<uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml" />
					</uriMapper:UriMapper>
				</navigation:Frame.UriMapper>
			</navigation:Frame>
		</Grid>
	</Controls:BusyIndicator>
</UserControl>
